package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessVideoMapper;
import com.hckjsec.cloud.domain.AppletsBusinessVideo;
import com.hckjsec.cloud.service.IAppletsBusinessVideoService;

/**
 * 申办信息视频Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-26
 */
@Service
public class AppletsBusinessVideoServiceImpl implements IAppletsBusinessVideoService 
{
    @Autowired
    private AppletsBusinessVideoMapper appletsBusinessVideoMapper;

    /**
     * 查询申办信息视频
     * 
     * @param id 申办信息视频ID
     * @return 申办信息视频
     */
    @Override
    public AppletsBusinessVideo selectAppletsBusinessVideoById(Long id)
    {
        return appletsBusinessVideoMapper.selectAppletsBusinessVideoById(id);
    }

    /**
     * 查询申办信息视频列表
     * 
     * @param appletsBusinessVideo 申办信息视频
     * @return 申办信息视频
     */
    @Override
    public List<AppletsBusinessVideo> selectAppletsBusinessVideoList(AppletsBusinessVideo appletsBusinessVideo)
    {
        return appletsBusinessVideoMapper.selectAppletsBusinessVideoList(appletsBusinessVideo);
    }

    /**
     * 新增申办信息视频
     * 
     * @param appletsBusinessVideo 申办信息视频
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessVideo(AppletsBusinessVideo appletsBusinessVideo)
    {
        return appletsBusinessVideoMapper.insertAppletsBusinessVideo(appletsBusinessVideo);
    }

    /**
     * 修改申办信息视频
     * 
     * @param appletsBusinessVideo 申办信息视频
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessVideo(AppletsBusinessVideo appletsBusinessVideo)
    {
        return appletsBusinessVideoMapper.updateAppletsBusinessVideo(appletsBusinessVideo);
    }

    /**
     * 批量删除申办信息视频
     * 
     * @param ids 需要删除的申办信息视频ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessVideoByIds(Long[] ids)
    {
        return appletsBusinessVideoMapper.deleteAppletsBusinessVideoByIds(ids);
    }

    /**
     * 删除申办信息视频信息
     * 
     * @param id 申办信息视频ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessVideoById(Long id)
    {
        return appletsBusinessVideoMapper.deleteAppletsBusinessVideoById(id);
    }
}
